//---------------------------------------------------------------------------

#ifndef motor_waveH
#define motor_waveH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
#include <ComCtrls.hpp>
//---------------------------------------------------------------------------
class TFormMWE : public TForm
{
__published:	// IDE-managed Components
	TComboBox *ComboBox_Motor_Select;
	TLabel *Label1;
	TGroupBox *GroupBox1;
	TImage *ImageMotorWave;
	TLabel *Label2;
	TTrackBar *TrackBarScaleX;
	TTrackBar *TrackBarScaleY;
	TLabel *Label3;
	TButton *ButtonConfirm;
	TButton *ButtonCancel;
	TGroupBox *GroupBoxInfo;
	TLabel *Label4;
	TLabel *Label5;
	TLabel *Label6;
	TLabel *Label7;
	TEdit *Edit_Time;
	TEdit *Edit_ID;
	TEdit *Edit_Position;
	TEdit *Edit_Speed;
	TButton *ButtonAutoScale;
	void __fastcall ComboBox_Motor_SelectChange(TObject *Sender);
	void __fastcall TrackBarScaleXChange(TObject *Sender);
	void __fastcall TrackBarScaleYChange(TObject *Sender);
	void __fastcall FormShow(TObject *Sender);
	void __fastcall ImageMotorWaveMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
          int X, int Y);
	void __fastcall FormMouseWheelUp(TObject *Sender, TShiftState Shift, TPoint &MousePos,
          bool &Handled);
	void __fastcall FormMouseWheelDown(TObject *Sender, TShiftState Shift, TPoint &MousePos,
          bool &Handled);
	void __fastcall ButtonAutoScaleClick(TObject *Sender);
	void __fastcall ButtonCancelClick(TObject *Sender);
	void __fastcall ButtonConfirmClick(TObject *Sender);
	void __fastcall Edit_PositionKeyPress(TObject *Sender, wchar_t &Key);

private:	// User declarations
public:		// User declarations
	__fastcall TFormMWE(TComponent* Owner);
	Graphics::TBitmap *OrgBitmapMotorWave;
};
//---------------------------------------------------------------------------
extern PACKAGE TFormMWE *FormMWE;
//---------------------------------------------------------------------------
#endif
